package com.goldmantis.alitrip.mq;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.goldmantis.alitrip.common.redis.RedisService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author:Shmily
 * @Description:
 * @Date:Create in 17:35 2017/11/23
 */
public class ItemMQHandler {


    @Autowired
    private RedisService redisService;
    private static final ObjectMapper MAPPER=new ObjectMapper();
//
//    @Autowired
//    private ItemService itemService;
//
//    public void execute(String message){
//        try {
//            JsonNode jsonNode = MAPPER.readTree(message);
//            String key= this.itemService.REDIS_KEY+jsonNode.get("itemId").asLong();
//            this.redisService.del(key);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }

    public void execute(String message){
    }
}
